home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 2
/
Atari Mega Archive CD - Volume 2.iso
/
8bit
/
diskutil
/
ibm2azip.new
/
makefile.gnu
< prev
next >
Wrap
Makefile
|
1993-03-31
|
623b
|
32 lines
# makefile template
# for djgpp -- should work with other C compilers, with adjustments
# intended for GNUish make 3.58
CC = gcc
LD = gcc
# if you don't have rm under DOS, you can use del instead.
RM = rm
MODE = ansi
CFLAGS = -c -O2 -$(MODE)
# in djgpp, -s means "strip".
LDFLAGS = -s
all : a2ibm ibm2a
a2ibm : a2ibm.c
$(CC) $(CFLAGS) a2ibm.c
$(CC) -o a2ibm $(LDFLAGS) a2ibm.o
aout2exe a2ibm
+$(RM) a2ibm a2ibm.o
ibm2a : ibm2a.c
$(CC) $(CFLAGS) ibm2a.c
$(CC) -o ibm2a $(LDFLAGS) ibm2a.o
aout2exe ibm2a
+$(RM) ibm2a ibm2a.o
.SUFFIXES : .o .c .h .exe
.c.o :
$(CC) $(CFLAGS) $<